<?php
class SF_Orderrepayment_Block_Select extends Mage_Core_Block_Template 
{
    protected $_orderid = "";
    
    public function __construct(){
        parent::__construct();
        $this->_orderid = $this->getRequest()->getParam('order_id');
    }
	protected function _toHtml()
	{
	
		return parent::_toHtml();
	}
	/**
	 * Retrieve current order model instance
	 *
	 * @return Mage_Sales_Model_Order
	 */
	public function getOrder()
	{
	    return Mage::registry('current_order');
	}
	
	public function getBaseGrandTotal()
	{
		if ($this->_orderid)
		{
			$order    = Mage::getModel('sales/order')->load($this->_orderid);
			return $order->getBaseGrandTotal();
		}
		return null;
	}
	public function getLocaleCode(){
	    $locale = Mage::app()->getLocale()->getLocaleCode();
	    return $locale;
	}
	public function needShowNote(){
	    if($this->getLocaleCode()=="ru_RU"){
	        return true;
	    }else{
	        return false;
	    }
	}
	 protected function _prepareLayout()
    {
       //$this->getLayout()->getBlock('head')->addCss('css/sf_repay.css');
        return parent::_prepareLayout();
    }
}